#ifndef TOKEN_H_INCLUDED
#define TOKEN_H_INCLUDED

#include "list.h"

#define TokenType_None 0
#define TokenType_Variable 1
#define TokenType_String 2
#define TokenType_Value 3

//declare部分
#define TokenType_DeclareExpressionStart 100
#define TokenType_DeclareExpressionEnd 101
#define TokenType_DeclareOr 102
#define TokenType_DeclareMore 103
#define TokenType_DeclareLess 104
#define TokenType_DeclareBetween 105

typedef struct _token{
	int type;//类型
    char *name; //名字
    int len; //长度
    int line;
}Token;

Token *TokenInit(int type);

int TokenDeclareConvert(Token *ptoken);


#endif // TOKEN_H_INCLUDED
